﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.EnterpriseLibrary.Caching;

namespace MicropleSoft.WmsApp.Library.ApplicationCache
{
    public partial class DataCache : IDataCache
    {
        private static readonly ICacheManager CacheManagerInstance = CacheFactory.GetCacheManager();
      
        public object GetData(string key)
        {
            return CacheManagerInstance.GetData(key);
        }

        public void RemoveData(string key)
        {
           CacheManagerInstance.Remove(key);
        }

        public void AddData(string key, object data)
        {
            CacheManagerInstance.Add(key,data);
        }
    }
}
